package com.worken.demo.controller;

import com.worken.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fangrui
 * @date 2020/5/20 10:09
 */
@RestController
@RequestMapping("demo")
public class DemoController {

    @Autowired
    private UserService userService;

    @GetMapping("helloWord")
    public String helloWord() {
        userService.save();
        return "success";
    }
}
